import request from '@/utils/request'

// 查询人员管理列表
export function listManagerUser (query) {
  return request({
    url: '/manager/managerUser/list',
    method: 'get',
    params: query
  })
}

// 查询人员管理详细
export function getManagerUser (id) {
  return request({
    url: '/manager/managerUser/' + id,
    method: 'get'
  })
}

// 新增人员管理
export function addManagerUser (data) {
  return request({
    url: '/manager/managerUser',
    method: 'post',
    data: data
  })
}

// 新增人员管理
export function removeSale (data) {
  return request({
    url: '/manager/managerUser/removeSale',
    method: 'post',
    data: data
  })
}

// 修改人员管理
export function updateManagerUser (data) {
  return request({
    url: '/manager/managerUser',
    method: 'put',
    data: data
  })
}

// 删除人员管理
export function delManagerUser (id) {
  return request({
    url: '/manager/managerUser/' + id,
    method: 'delete'
  })
}


// 查询教练上课统计
export function teacherDuty (query) {
  return request({
    url: '/manager/managerUser/teacherDuty',
    method: 'get',
    params: query
  })
}

// 按照日期查看教练出勤
export function teacherAttceQuery (query) {
  return request({
    url: '/manager/managerUser/teacherAttceQuery',
    method: 'get',
    params: query
  })
}